package com.bms.entity;

import java.sql.Date;

public class Book {

	private String isbn;
	private String name;
	private float price;
	private int version;
	private Date publishTime;
	private int publisherId;// 外键  持久化的属性
	
	
	private String publisherName;// 存储查询得到的出版社的名称

	private int[] authorsId;// 保存与该图书相关的作者的主键id

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public int getPublisherId() {
		return publisherId;
	}

	public void setPublisherId(int publisherId) {
		this.publisherId = publisherId;
	}

	public int[] getAuthorsId() {
		return authorsId;
	}

	public void setAuthorsId(int[] authorsId) {
		this.authorsId = authorsId;
	}

	public String getPublisherName() {
		return publisherName;
	}

	public void setPublisherName(String publisherName) {
		this.publisherName = publisherName;
	}

}
